package slisfx.user;

public class Users {
	
	private String userName;
	private String password;
	private int userPermissions;
	private int status;
	

	public Users(String name, String pword, String permissions) {
		userName = name;
		password = pword;
		userPermissions = new Integer(permissions);
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getUserPermissions() {
		return userPermissions;
	}

	public void setUserPermissions(int userPermissions) {
		this.userPermissions = userPermissions;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}
        
        public String toXML(){	
            return "<USER>\n<UserName>"+ this.userName +
                    "</UserName>\n <Password>" + this.password + 
                    "</Password>\n <Permissions>" + this.userPermissions 
                    + "</Permissions>\n</USER>\n"; 	
        }
}
